        @extends('backend.layouts.default')

        @section('title')企业管理@endsection

        @section('brief')企业管理@endsection

        @section('content')
            @include('backend.commons.sidebar')
            <!-- BEGIN CONTENT -->
            <div class="page-content-wrapper">
                <!-- BEGIN CONTENT BODY -->
                <div class="page-content">
                     <!-- BEGIN PAGE HEADER-->
                    @include('backend.commons.title')
                    <div class="page-bar">
                        <ul class="page-breadcrumb">
                            <li>
                                <i class="icon-home"></i>
                                <a href="{{ url('/admin/dashboard') }}">管理首页</a>
                                <i class="fa fa-angle-right"></i>
                            </li>
                            <li>
                                <span>@yield('title')</span>
                            </li>
                        </ul>
                    </div>
                    <!-- END PAGE HEADER-->
                    <div class="row">
                        <div class="col-md-12">
                            <!-- BEGIN SAMPLE TABLE PORTLET-->
                            <div class="portlet">
{{--                                 <div class="portlet-title">
                                    <a href="{{ url('/admin/companies/create') }}" class="btn green">
                                        <i class="fa fa-plus"></i>
                                        新增企业
                                    </a>
                                </div> --}}
                                <div class="portlet-body">
                                    <div class="table-scrollable">
                                        <table class="table table-striped table-bordered table-advance table-hover">
                                            <thead>
                                                <tr>
                                                    <th width="20%">
                                                        名称 
                                                    </th>
                                                    <th width="20%">
                                                        邮箱
                                                    </th>
                                                    <th width="40%">
                                                        更新时间 
                                                    </th>
{{--                                                     <th width="10%">
                                                        状态
                                                    </th> --}}
                                                    {{-- <th width="10%"> 操作 </th> --}}
                                                </tr>
                                            </thead>
                                            <tbody>
                                                @forelse($companies as $company)
                                                <tr>
                                                    <td>
                                                        <a href="javascript:;">{{ $company->company }} </a>
                                                    </td>
                                                    <td> {{ $company->email }} </td>
                                                    <td> {{ $company->updated_at }} </td>
{{--                                                     <td>
                                                        <a href="{{ url('/admin/companies/' . $company->id ) }}" class="btn btn-outline btn-circle btn-sm blue">
                                                            <i class="fa fa-edit"></i> 修改 </a>
                                                        <a href="javascript:;" class="btn btn-outline btn-circle btn-sm red delete" data-url="{{ url('/admin/companies/' . $company->id ) }}" data-redirect="{{ url()->full() }}">
                                                            <i class="fa fa-close"></i> 删除 </a>
                                                    </td> --}}
                                                </tr>
                                                @empty
                                                <tr>
                                                    <td colspan="4" height="300px"><center style="line-height: 300px"><i class="fa fa-meh-o"></i>&nbsp;&nbsp;什么都没有</center></td>
                                                </tr>
                                                @endforelse
                                            </tbody>
                                        </table>
                                    </div>
                                </div>
                            </div>
                            <!-- END SAMPLE TABLE PORTLET-->

                            <div>
                                <ul class="pagination">
                                    {{ $companies->links() }}
                                </ul>
                            </div>
                        </div>
                    </div>
                </div>
                <!-- END CONTENT BODY -->
            </div>
        @endsection